<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>02设置简单编辑器模式</title>
		<!-- 添加kindeditor的引用 -->
		<script type="text/javascript" charset="utf-8" src="js/kindeditor/kindeditor.js"></script>
		<script type="text/javascript" charset="utf-8" src="js/kindeditor/lang/zh_CN.js"></script>
	</head>
	
	<script>
		var editor;
		KindEditor.ready(function(K){
			editor = K.create('textarea[id="content"]',{
				allowFileManager : true,
				//设置编辑器为简单模式
				items:[
					'fontname','fontsize','i','forecolor','hilitecolor','bold','italic','underline',
					'removeformat','i','justifyleft','justifycenter','justifyright','insertorderedlist',
					'insertunorderedlist','i','emoticons','image','link'
				]
			});
		});
	</script>
	
	<body>
		<textarea id="content" style="width:100%;height: 500px;"></textarea>
	</body>
</html>
